package com.facade;

import java.io.Serializable;
import java.util.List;

import com.dao.MedicalDAO;
import com.model.Medical;

public class MedicalFacade implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private MedicalDAO medicalDAO = new MedicalDAO();
	
	public List<Medical> listAll() {
		medicalDAO.beginTransaction();
		List<Medical> result = medicalDAO.findAll();
		medicalDAO.closeTransaction();
		return result;
	}

}
